package com.wyk.handler;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: ParameterMappingTokenHandler
 * @Description:
 * @Author: 初久
 * @Date: 2022/7/11 21:30
 **/
public class ParameterMappingTokenHandler implements TokenHandler {

    private List<ParameterMapping> parameterMappings = new ArrayList<>();

    public List<ParameterMapping> getParameterMappings() {
        return parameterMappings;
    }

    @Override
    public String handleToken(String content) {
        parameterMappings.add(new ParameterMapping(content));
        //TODO 将#{xxx}替换为?
        return "?";
    }


}
